package cn.qidd.keep.domain.document;

import cn.qidd.keep.domain.core.dict.SuccessOrFailure;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by sunyanping on 2019/3/4
 */
@Data
@Document(collection = "operation_log")
public class OperationLog implements Serializable {
    @Id
    private String id;
    @ApiModelProperty("请求接口")
    private String requestURL;
    @ApiModelProperty("请求类型")
    private String requestMethod;
    @ApiModelProperty("请求时长")
    private Long executeTime;
    @ApiModelProperty("请求结果")
    private SuccessOrFailure status;
    @ApiModelProperty("方法签命")
    private String signature;
    @ApiModelProperty("简要描述")
    private String description;
    @ApiModelProperty("错误详细信息")
    private String detailsId;
    private Date operatorTime;
    private String operatorName;
    private String operatorRealName;
}
